package com.iob.coin.entity.questionTree;

import com.iob.coin.entity.result.Result;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author: GuoXinyuan
 * @Date: 2021/6/7
 */

abstract public class QuestionTree {

    Object content; //根据子类类型不同而不同

    public QuestionTree(Object o){
        this.content = o;
    }

    /**
     * 获取树高
     * @return 树高
     */
    public int level() {
        return 1;
    }

}
